package cn.demoncat.util.lang.constant;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * 
 * 
 * 描述：字符集常量
 *
 * @author 延晓磊
 *
 * @since 2016年6月26日
 */
public class CharsetConstant {
 
	public static final String UTF8 = "UTF-8";

	public static final Charset UTF8_CHARSET = StandardCharsets.UTF_8;
	
	public static final String ISO8859 = "ISO-8859-1";
	
	public static final Charset ISO8859_CHARSET = Charset.forName(ISO8859);
	
	public static final String ASCII = "US-ASCII";
	
	public static final Charset ASCII_CHARSET = Charset.forName(ASCII);
	
	public static final String GBK = "GBK";
	
	public static final Charset GBK_CHARSET = Charset.forName(GBK);
	
	public static final String UNICODE = "Unicode";
	
	public static final Charset UNICODE_CHARSET = Charset.forName(UNICODE);
	
	public static final String UTF16 = "UTF-16BE";
	
	public static final Charset UTF16_CHARSET = Charset.forName(UTF16);
 
	
}
